<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>typeof 测试</title>
</head>
<body>

<script type="text/javascript">
	
   // typeof

  function testType(value)
  {
  	 console.info(typeof(value))
  }

 testType(1);
 testType("123");
 testType(true)
 testType({})
 testType([])
 testType(function(){

 })
 testType(null)
 testType(undefined)
  
  class Person {
  	 constructor(name,age)
  	 {
  	 	 this.name  = name;
  	 	 this.age = age;
  	 }
  }
 
  let p = new Person("xml",24)

  if( p instanceof Person )
  {
  	  console.info("我是Person的实例")
  }

</script>

</body>
</html>